#ifndef __MAIN_H__
#define __MAIN_H__
#include <STC15F2K60S2.H>

#define LED(x)	{P0 = x; P2 = (P2 & 0x1f | 0x80); P2 &= 0x1f;} 

#define BUZ(x)	{P0 = x; P2 = (P2 & 0x1f | 0xa0); P2 &= 0x1f;} 

#define COM(x)	{P0 = x; P2 = (P2 & 0x1f | 0xc0); P2 &= 0x1f;} 

#define SED(x)	{P0 = x; P2 = (P2 & 0x1f | 0xe0); P2 &= 0x1f;} 

#endif